using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Microblaze.Simulator.Components.Microblaze.Instructions
{
    public class Brk : Instruction
    {
        public override int CycleCount
        {
            get { return 3; }
        }

        public Brk()
            : base("brk")
        {
        }

        public override void Execute(MicroblazeComponent MicroblazeComponent)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string ToString()
        {
            return string.Format("brk r{0}, r{1}",
              DestinationRegister,
              SourceRegisterB
            );
        }
    }
}
